package adapter_pattern.v2;

/**
 * 翻译者即适配器
 * @author 米饭好好吃
 */
public class Translator extends Player {

    private ForeignCenter foreignCenter = null;

    public Translator(String name) {
        super(name);
        foreignCenter = new ForeignCenter(name);
    }

    @Override
    public void attack() {
        foreignCenter.进攻();
    }

    @Override
    public void defense() {
        foreignCenter.防守();
    }
}
